package com.example.logistics_manage.service.serviceImpl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.logistics_manage.mapper.CargoMapper;
import com.example.logistics_manage.pojo.Cargo;
import com.example.logistics_manage.service.ICargoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CargoService extends ServiceImpl<CargoMapper, Cargo> implements ICargoService {
    @Autowired
    CargoMapper cargoMapper;

    @Override
    public Cargo findCargoById(Integer cargoId) {
        return getById(cargoId);
    }

    @Override
    public void updateCargo(Cargo cargo) {
        cargoMapper.updateById(cargo);
    }
}
